package top.zymall.sms.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 17:22 2019/7/12
 */
@RefreshScope
@RestController
public class Controller {
    @Value("${redis.host}")
    private String redisHost;


    @RequestMapping("main")
    public String main() {
        return redisHost;
    }
}
